import { SESSIONLIST, SINGLECHAT } from '../constant'

const INITIAL_STATE = []

export default function counter(state = INITIAL_STATE, action) {
  switch (action.type) {
    case SESSIONLIST:
      return action.data
    case SINGLECHAT:
      return state
    default:
      return state
  }
}

